<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: sha256类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../d2/dd0/classsha256-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">sha256类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>sha256计算模块  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d5/d68/sha256_8hpp_source.html">sha256.hpp</a>&gt;</code></p>
<div class="dynheader">
sha256 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/dda/classsha256__coll__graph.png" border="0" usemap="#asha256_coll__map" alt="Collaboration graph"/></div>
<map name="asha256_coll__map" id="asha256_coll__map">
<area shape="rect" title="sha256计算模块" alt="" coords="5,5,160,251"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8275ad003a96033afe793714971d2a32" id="r_a8275ad003a96033afe793714971d2a32"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8275ad003a96033afe793714971d2a32">sha256</a> ()</td></tr>
<tr class="separator:a8275ad003a96033afe793714971d2a32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e11f7081101f72f665f22e1fb497e1a" id="r_a4e11f7081101f72f665f22e1fb497e1a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4e11f7081101f72f665f22e1fb497e1a">sha256</a> (const std::string &amp;data)</td></tr>
<tr class="separator:a4e11f7081101f72f665f22e1fb497e1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70d700b72d1275c6f9673b2211d5eee4" id="r_a70d700b72d1275c6f9673b2211d5eee4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a70d700b72d1275c6f9673b2211d5eee4">sha256</a> (void *data, size_t len)</td></tr>
<tr class="separator:a70d700b72d1275c6f9673b2211d5eee4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d5eff1f9832010be5dbb071d86aa36d" id="r_a3d5eff1f9832010be5dbb071d86aa36d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3d5eff1f9832010be5dbb071d86aa36d">~sha256</a> ()</td></tr>
<tr class="separator:a3d5eff1f9832010be5dbb071d86aa36d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa259a4203e4d8aa9a6ccf48f86b8b86d" id="r_aa259a4203e4d8aa9a6ccf48f86b8b86d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa259a4203e4d8aa9a6ccf48f86b8b86d">update</a> (const void *data, size_t len)</td></tr>
<tr class="separator:aa259a4203e4d8aa9a6ccf48f86b8b86d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24d456b943b598e0a94432f78ab57e73" id="r_a24d456b943b598e0a94432f78ab57e73"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a24d456b943b598e0a94432f78ab57e73">finish</a> ()</td></tr>
<tr class="separator:a24d456b943b598e0a94432f78ab57e73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa74c2304b4b4546f4f285897dc2609e7" id="r_aa74c2304b4b4546f4f285897dc2609e7"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa74c2304b4b4546f4f285897dc2609e7">str</a> ()</td></tr>
<tr class="separator:aa74c2304b4b4546f4f285897dc2609e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>sha256计算模块 </p>
<dl class="section version"><dt>版本</dt><dd>1.0 </dd></dl>
<dl class="section author"><dt>作者</dt><dd>宋炜 </dd></dl>
<dl class="section date"><dt>日期</dt><dd></dd></dl>

<p class="definition">在文件 <a class="el" href="../../d5/d68/sha256_8hpp_source.html">sha256.hpp</a> 第 <a class="el" href="../../d5/d68/sha256_8hpp_source.html#l00012">12</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a8275ad003a96033afe793714971d2a32" name="a8275ad003a96033afe793714971d2a32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8275ad003a96033afe793714971d2a32">&#9670;&#160;</a></span>sha256() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sha256::sha256 </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d08/sha256_8cpp_source.html">sha256.cpp</a> 第 <a class="el" href="../../d4/d08/sha256_8cpp_source.html#l00007">7</a> 行定义.</p>

</div>
</div>
<a id="a4e11f7081101f72f665f22e1fb497e1a" name="a4e11f7081101f72f665f22e1fb497e1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e11f7081101f72f665f22e1fb497e1a">&#9670;&#160;</a></span>sha256() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sha256::sha256 </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d08/sha256_8cpp_source.html">sha256.cpp</a> 第 <a class="el" href="../../d4/d08/sha256_8cpp_source.html#l00021">21</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/dca/classsha256_a4e11f7081101f72f665f22e1fb497e1a_cgraph.png" border="0" usemap="#ad4/dca/classsha256_a4e11f7081101f72f665f22e1fb497e1a_cgraph" alt=""/></div>
<map name="ad4/dca/classsha256_a4e11f7081101f72f665f22e1fb497e1a_cgraph" id="ad4/dca/classsha256_a4e11f7081101f72f665f22e1fb497e1a_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,119,32"/>
<area shape="rect" href="../../d4/dca/classsha256.html#aa259a4203e4d8aa9a6ccf48f86b8b86d" title=" " alt="" coords="167,5,277,32"/>
<area shape="poly" title=" " alt="" coords="119,16,151,16,151,21,119,21"/>
</map>
</div>

</div>
</div>
<a id="a70d700b72d1275c6f9673b2211d5eee4" name="a70d700b72d1275c6f9673b2211d5eee4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70d700b72d1275c6f9673b2211d5eee4">&#9670;&#160;</a></span>sha256() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sha256::sha256 </td>
          <td>(</td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d08/sha256_8cpp_source.html">sha256.cpp</a> 第 <a class="el" href="../../d4/d08/sha256_8cpp_source.html#l00029">29</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/dca/classsha256_a70d700b72d1275c6f9673b2211d5eee4_cgraph.png" border="0" usemap="#ad4/dca/classsha256_a70d700b72d1275c6f9673b2211d5eee4_cgraph" alt=""/></div>
<map name="ad4/dca/classsha256_a70d700b72d1275c6f9673b2211d5eee4_cgraph" id="ad4/dca/classsha256_a70d700b72d1275c6f9673b2211d5eee4_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,119,32"/>
<area shape="rect" href="../../d4/dca/classsha256.html#aa259a4203e4d8aa9a6ccf48f86b8b86d" title=" " alt="" coords="167,5,277,32"/>
<area shape="poly" title=" " alt="" coords="119,16,151,16,151,21,119,21"/>
</map>
</div>

</div>
</div>
<a id="a3d5eff1f9832010be5dbb071d86aa36d" name="a3d5eff1f9832010be5dbb071d86aa36d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d5eff1f9832010be5dbb071d86aa36d">&#9670;&#160;</a></span>~sha256()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sha256::~sha256 </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d08/sha256_8cpp_source.html">sha256.cpp</a> 第 <a class="el" href="../../d4/d08/sha256_8cpp_source.html#l00013">13</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a24d456b943b598e0a94432f78ab57e73" name="a24d456b943b598e0a94432f78ab57e73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24d456b943b598e0a94432f78ab57e73">&#9670;&#160;</a></span>finish()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string sha256::finish </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d08/sha256_8cpp_source.html">sha256.cpp</a> 第 <a class="el" href="../../d4/d08/sha256_8cpp_source.html#l00042">42</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/dca/classsha256_a24d456b943b598e0a94432f78ab57e73_icgraph.png" border="0" usemap="#ad4/dca/classsha256_a24d456b943b598e0a94432f78ab57e73_icgraph" alt=""/></div>
<map name="ad4/dca/classsha256_a24d456b943b598e0a94432f78ab57e73_icgraph" id="ad4/dca/classsha256_a24d456b943b598e0a94432f78ab57e73_icgraph">
<area shape="rect" title=" " alt="" coords="140,5,242,32"/>
<area shape="rect" href="../../d4/dca/classsha256.html#aa74c2304b4b4546f4f285897dc2609e7" title=" " alt="" coords="5,5,92,32"/>
<area shape="poly" title=" " alt="" coords="124,21,92,21,92,16,124,16"/>
</map>
</div>

</div>
</div>
<a id="aa74c2304b4b4546f4f285897dc2609e7" name="aa74c2304b4b4546f4f285897dc2609e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa74c2304b4b4546f4f285897dc2609e7">&#9670;&#160;</a></span>str()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string sha256::str </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d5/d68/sha256_8hpp_source.html">sha256.hpp</a> 第 <a class="el" href="../../d5/d68/sha256_8hpp_source.html#l00026">26</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/dca/classsha256_aa74c2304b4b4546f4f285897dc2609e7_cgraph.png" border="0" usemap="#ad4/dca/classsha256_aa74c2304b4b4546f4f285897dc2609e7_cgraph" alt=""/></div>
<map name="ad4/dca/classsha256_aa74c2304b4b4546f4f285897dc2609e7_cgraph" id="ad4/dca/classsha256_aa74c2304b4b4546f4f285897dc2609e7_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,92,32"/>
<area shape="rect" href="../../d4/dca/classsha256.html#a24d456b943b598e0a94432f78ab57e73" title=" " alt="" coords="140,5,242,32"/>
<area shape="poly" title=" " alt="" coords="92,16,124,16,124,21,92,21"/>
</map>
</div>

</div>
</div>
<a id="aa259a4203e4d8aa9a6ccf48f86b8b86d" name="aa259a4203e4d8aa9a6ccf48f86b8b86d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa259a4203e4d8aa9a6ccf48f86b8b86d">&#9670;&#160;</a></span>update()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sha256::update </td>
          <td>(</td>
          <td class="paramtype">const void *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d08/sha256_8cpp_source.html">sha256.cpp</a> 第 <a class="el" href="../../d4/d08/sha256_8cpp_source.html#l00037">37</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/dca/classsha256_aa259a4203e4d8aa9a6ccf48f86b8b86d_icgraph.png" border="0" usemap="#ad4/dca/classsha256_aa259a4203e4d8aa9a6ccf48f86b8b86d_icgraph" alt=""/></div>
<map name="ad4/dca/classsha256_aa259a4203e4d8aa9a6ccf48f86b8b86d_icgraph" id="ad4/dca/classsha256_aa259a4203e4d8aa9a6ccf48f86b8b86d_icgraph">
<area shape="rect" title=" " alt="" coords="167,31,277,57"/>
<area shape="rect" href="../../d4/dca/classsha256.html#a4e11f7081101f72f665f22e1fb497e1a" title=" " alt="" coords="5,5,119,32"/>
<area shape="poly" title=" " alt="" coords="151,35,119,30,120,25,152,30"/>
<area shape="rect" href="../../d4/dca/classsha256.html#a70d700b72d1275c6f9673b2211d5eee4" title=" " alt="" coords="5,56,119,83"/>
<area shape="poly" title=" " alt="" coords="152,58,120,63,119,58,151,53"/>
</map>
</div>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../d5/d68/sha256_8hpp_source.html">sha256.hpp</a></li>
<li>src/<a class="el" href="../../d4/d08/sha256_8cpp_source.html">sha256.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
